package com.king.controller;

import com.king.pojo.User;
import com.king.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
public class UserController {

    @Autowired
    private UserService userService;

    public List<User> getUsers(){
        return userService.getUsers();
    }

}
